<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>渐变应用</title>
    <link rel="stylesheet" href="../libs/bootstrap/css/bootstrap.min.css">
    <style>
        .panel:nth-child(1) .item{
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100px;
            height: 50px;
            background-color: green;
            border-radius: 5px;
            font-size: 18px;
            color: white;
            background-image: linear-gradient(to bottom,rgba(0,0,0,0),rgba(0,0,0,0.5));
            cursor: pointer;
        }

        .panel:nth-child(2) .item{
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background-color: green;
            background-image: radial-gradient(100px at 50px 50px,rgba(0,0,0,0),rgba(0,0,0,0.5));
        }

        .panel:nth-child(3) .item{
            width: 180px;
            height: 40px;
            background-color: yellow;
            background-image: linear-gradient(
                135deg,
                green 25%,
                transparent 25%,
                transparent 50%,
                green 50%,
                green 75%,
                transparent 75%,
                transparent 100%
            );
            background-size: 40px 40px;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="page-header">
        <h1>渐变应用</h1>
    </div>
    <div>
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3>按钮立体感</h3>
            </div>
            <div class="panel-body">
                <div class="item">确定</div>
            </div>
        </div>


        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3>球体立体感</h3>
            </div>
            <div class="panel-body">
                <div class="item"></div>
            </div>
        </div>


        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3>进度条</h3>
            </div>
            <div class="panel-body">
                <div class="item"></div>
            </div>
        </div>


    </div>
</div>
</body>
</html>